#include <cstdio>
#include "spdlog/sinks/basic_file_sink.h"

int main(int argc, const char ** argv) {
	
    try   {
        auto logger = spdlog::basic_logger_mt("basic_logger", "logs/basic-log.txt");
		logger->set_level(spdlog::level::debug);
		logger->debug("abc: {0}", "hello world");
		logger->flush();
    }
    catch (const spdlog::spdlog_ex &ex)  {
		printf("Log init failed: %s\n", ex.what());
    }
	return 0;
}
